#! /usr/bin/env node
const inquirer = require('inquirer');
const prompt = inquirer.createPromptModule();
const fs = require("fs");
async function collect(){
    const obj = await prompt([
        {
            type:"input",
            name:"name",
            message:"name",
        },
        {
            type:"input",
            name:"version",
            message:"version",
        },
        {
            type:"input",
            name:"description",
            message:"description",
        },
        {
            type:"input",
            name:"entry ",
            message:"entry ",
        },
        {
            type:"input",
            name:"point",
            message:"point",
        },
        {
            type:"input",
            name:"test ",
            message:"test ",
        },
        {
            type:"input",
            name:"command",
            message:"command",
        },
        {
            type:"input",
            name:"git ",
            message:"git ",
        },
        {
            type:"input",
            name:"repository ",
            message:"repository ",
        },
        {
            type:"input",
            name:"keywords ",
            message:"keywords ",
        },
        {
            type:"input",
            name:"author ",
            message:"author ",
        },
        {
            type:"input",
            name:"license ",
            message:"license ",
        },
    ])
    fs.writeFileSync("package_init.json",JSON.stringify(obj))
}
collect()